package icu.lyt0628;

import java.io.PrintStream;
import java.util.Scanner;

public class Cat {

    public static void main(String[] args) {

        App app = new App();
        app.connect();

        Scanner scan = new Scanner(System.in);
        PrintStream o = System.out;

        o.println("Please input src file path:  ");
        String file = scan.nextLine();


        while (!app.exists(file)){
            o.println("dst file does not exists, re-input?");
            file = scan.nextLine();
        }

        String res = app.cat(file);
        o.println(res);


        app.release();
    }
}
